using UnityEngine;

public class PlayAnimationOnClick : MonoBehaviour
{
	public Animator animator;

	public string triggerName;

	private void OnClick()
	{
		if ((bool)animator)
		{
			animator.SetTrigger(triggerName);
		}
	}
}
